package com.stock.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
@TableName("stock_history_data")
public class StockHistoryDataEntity {

    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("编码")
    private String code;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("买入价格")
    private BigDecimal price;

    @ApiModelProperty("类型")
    private Integer type;

    @ApiModelProperty("创建时间/买入时间")
    private String createTime;

    @ApiModelProperty("逻辑删除")
    private Integer isDel = 0;

    public StockHistoryDataEntity(String code, String name, BigDecimal price, Integer type, String createTime) {
        this.code = code;
        this.name = name;
        this.price = price;
        this.type = type;
        this.createTime = createTime;
    }

}
